﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Possan.Localization;

namespace Loot
{
	class FileMerger
	{
		XmlLibraryProvider provider;
 
		public FileMerger()
		{
			// files = new List<string>();
			provider = new XmlLibraryProvider();
			provider.Clear();
		}

		public void AddFile(string filename)
		{
	//		MessageBox.Show("input = " + string.Join(", ", m_mergelist.ToArray()));
	//		MessageBox.Show("output = " + m_target);
			provider.ImportXML(filename);
		}

		public void Merge(string output)
		{
	//		MessageBox.Show("input = " + string.Join(", ", m_mergelist.ToArray()));
	//		MessageBox.Show("output = " + m_target);
			provider.ExportXML(output);
		}
	}
}
